package com.edais.service.imp;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.edais.dao.RateRisesCouponsDao;
import com.edais.domain.LootShare;
import com.edais.service.RateRisesNewCouponsService;

@Service

@Transactional
public class RateRisesNewCouponsServiceImpl implements RateRisesNewCouponsService {

	private static final Log logger = LogFactory.getLog(RateRisesNewCouponsServiceImpl.class);
	
	@Autowired
	private RateRisesCouponsDao rateRisesCouponsDao;
	
	/**
	 * 获取加息券
	 * @throws Exception 
	 * @throws NumberFormatException 
	 */
	@Override
	@Transactional(propagation=Propagation.REQUIRES_NEW,rollbackFor=Exception.class,readOnly=false)
	public void insertLootShare(LootShare lootShare) throws Exception {
		this.rateRisesCouponsDao.insertLootShare(lootShare);
	}
	
	
}
